import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        boolean bool=true;
        A a =new A();
        do {
            System.out.println("=====零钱通菜单=========");
            System.out.println("\t\t1.零钱通明细");
            System.out.println("\t\t2.收益入账");
            System.out.println("\t\t3.消费");
            System.out.println("\t\t4.退出");
            System.out.println("请选择：");
           String chance=scanner.next();
            switch (chance){
                case "1":
                    a.detail();
                    break;
                case "2":
                    a.income();
                    break;
                case "3":
                    a.pay();
                    break;
                case "4":
                    bool= a.exit();
                    break;
                default:
                    System.out.println("输入错误");
            }
        }while (bool);
        System.out.println("已经退出");
    }
}
